'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async GetNovel() {
    const { ctx } = this;
    let sql=`SELECT * FROM book`
    const res=await this.app.mysql.query(sql)
    console.log(res,1111111111);
    ctx.body = {
        code:200,
        info:res
    };
  }

}

module.exports = HomeController;